﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="xahoi.aspx.cs" Inherits="xahoi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
    Trang Xã hội<br />
    <asp:DataList ID="dataListTomTatTinTuc" runat="server" DataKeyField="MaBanTin" 
        DataSourceID="AccessDataSource1" CellPadding="4" 
            RepeatColumns="2" ForeColor="#333333">
        <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <ItemStyle ForeColor="#333333" BackColor="#F7F6F3" />
        <ItemTemplate>
            <br />
            <table style="width:100%;">
                <tr>
                    <td colspan="2">
                        <asp:HyperLink ID="HyperLink5" runat="server" Font-Bold="True" 
                            Font-Size="Small" ForeColor="#FF3300" Text='<%# Eval("TieuDe") %>' 
                            NavigateUrl='<%# Eval("MaBanTin", "bantin.aspx?MaBanTin={0}") %>'></asp:HyperLink>
                        <br />
                        <asp:Label ID="Label1" runat="server" Font-Size="Small" ForeColor="#669999" 
                            Text='<%# Eval("NgayDangTin", "{0:g}") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Image ID="Image3" runat="server" Height="80px" 
                            ImageUrl='<%# Eval("HinhAnh") %>' Width="80px" />
                    </td>
                    <td>
                        <asp:Label ID="Label2" runat="server" Font-Size="Small" ForeColor="Black" 
                            Text='<%# Eval("NoiDungTomTat") %>'></asp:Label>
                    </td>
                </tr>
            </table>
            <br />
        </ItemTemplate>
        <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    </asp:DataList>
</p>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" 
    DataFile="~/App_Data/TinTuc.mdb" 
    SelectCommand="SELECT MaBanTin, TieuDe, NoiDungTomTat, NoiDung, NgayDangTin, HinhAnh, ChuThichHinh, MaLinhVuc FROM BanTin WHERE (MaLinhVuc = 'XH')">
</asp:AccessDataSource>
</asp:Content>

